Farmer John's Dilemma. Amazon Hackon Challenge Question No 1.